<template>
	<view class="check-more-btn" :class="{borderTop: borderTop}" @click="goMore">
		<view>{{msg}}<text class="iconfont">&#xe67f;</text></view>
	</view>
</template>

<script>
	/**
	 * 查看更多
	 * @property {Boolean} borderTop 是否有上边框
	 */
	export default {
		name: 'stCheckMore',
		props: {
			msg: {
				type: String,
				default: '查看更多'
			},
			borderTop: {
				type: Boolean,
				default: true
			}
		},
		data() {
			return {
				
			};
		},
		methods: {
			goMore(){
				this.$emit('more')
			}
		}
	}
</script>

<style lang="scss">
	.check-more-btn{
		display: flex;
		align-items: center;
		justify-content: center;
		height: 88rpx;
		font-size: 26rpx;
		color: $uni-text-color-grey;
		.iconfont{
			position: relative;
			top: 2rpx;
			font-size: 32rpx;
			color: #a0a0a0;
		}
		&.borderTop{
			border-top: 1rpx solid $uni-border-color;
		}
	}
</style>
